package babo;
import java.util.Calendar;
import java.util.GregorianCalendar;

public class Times2 {
	public static void main(String[] args) {
		Calendar cal1 = Calendar.getInstance();
//		System.out.println(cal1);

		System.out.print(cal1.get(Calendar.YEAR));
		System.out.print(":");
		System.out.print(cal1.get(Calendar.MONTH) + 1);
		System.out.print(":");
		System.out.print(cal1.get(Calendar.DATE));

		Calendar cal2 = new GregorianCalendar();
		int week = cal2.get(Calendar.DAY_OF_WEEK);

		switch (week) {
		case 1:
			System.out.println("일요일");
			break;
		case 2:
			System.out.println("월요일");
			break;
		case 3:
			System.out.println("화요일");
			break;
		case 4:
			System.out.println("수요일");
			break;
		case 5:
			System.out.println("목요일");
			break;
		case 6:
			System.out.println("금요일");
			break;
		case 7:
			System.out.println("토요일");
			break;
		}

	}
}
 